# Program to find the difference between the 
# sum of the squares and the sqaure of the sums
# of the first 100 natural numbers
# ©Derek Slenk, 2009
sumOfSq = 0
sqOfSum = 0
for num in (1..100)
	sumOfSq += (num * num)
	sqOfSum += num
end
sqOfSum = sqOfSum * sqOfSum
diff = sqOfSum - sumOfSq
puts "The difference is: " + diff.to_s()
puts "Written Entirely by Derek Slenk, http://codingat3am.com"